package com.itheima.springboot02_01condition.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author zhangyan
 * @Version 1.0
 */
public class MyImportSelectors implements ImportSelector {

    //返回值String数组, 类的全名称字符串
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {

        return
                new String[]{"com.itheima.springboot02_01condition.pojo.User",
                             "com.itheima.springboot02_01condition.pojo.Apple"};
    }
}
